<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01vue</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app" >
<!--    <h1 >你的生日：{{new Data(birthday).getFullYear()}}</h1>-->
    <h1>你的生日：{{bieth}}</h1>

</div>


</body>
<script type="text/javascript">
    var app =new Vue({
        el:"#app",
        data:{
            birthday:1616566607104
        },
        computed:{
            bieth(){
                const dat = new Date(this.birthday);
                return dat.getFullYear()+"-"+day.getUTCMonth()+"-"+day.getUTCDay()
            }
        }
    })

</script>
</html>